<ui:fragment
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:p="http://primefaces.prime.com.tr/ui">

    <p:dialog header="#{bundle.Instituicao}" draggable="true" widgetVar="instituicao_listbyname" width="600" height="550">
        <h:form id="instituicao_listbyNameF" >
            <p:messages id="msgs"/>
            <h:panelGrid columns="3" >
                <h:outputLabel value="#{bundle.Nome}" />
                <h:inputText value="#{instituicaoController.instituicao.nome}" />
                <p:commandButton value="#{bundle.Pesquisar}" actionListener="#{instituicaoController.BuscarPorNome}" update="instituicao_listbyNameF" ajax="true"/>
            </h:panelGrid>
            <p:dataTable id="instituicaoList" var="instituicao" value="#{instituicaoController.listaInstituicoes}" paginator="true" rows="10" style="width:550px;text-align:center;">
                <p:column width="40" >
                    <f:facet name="header">
                        <h:outputText value="#{bundle.ID}" />
                    </f:facet>
                    <h:outputText value="#{instituicao.id}" />
                </p:column>
                <p:column width="60" >
                    <f:facet name="header">
                        <h:outputText value="#{bundle.Sigla}" />
                    </f:facet>
                    <h:outputText value="#{instituicao.sigla}" />
                </p:column>
                <p:column width="400" >
                    <f:facet name="header">
                        <h:outputText value="#{bundle.Nome}" />
                    </f:facet>
                    <h:outputText value="#{instituicao.nome}" />
                </p:column>
            </p:dataTable>

        </h:form>
    </p:dialog>
</ui:fragment>